@font-face {
    font-family: font;
    src: url(../Vazir/Vazir-Bold-FD.ttf);
}
html,body{
width: 100%;
height: auto;
float: left;
margin: 0;
padding: 0;   
direction: rtl;
}
body *{
    font-family: font;
}
a{
    text-decoration: none;
}
.m-ib-row{
    width: 90%;
    height: auto;
    float: left;
    display: flex;
    margin: 1em 5%;
    transform: scale(0.6);
    opacity: 0;
}
.m-ib-container{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    border: 1.5px solid rgba(80, 106, 173, 0.375);
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    background-color: white;
}
.m-ib-des,.m-ib-img{
    height: auto;
    float: left;
    display: flex;
    box-sizing: border-box;
}
.m-ib-des{
    width: 60%;
    padding: 2em;
    background: rgb(62 61 147);
    flex-direction: column;
    justify-content: center;
}
.m-ib-img{
    width: 40%;
    justify-content: left;
    align-items: center;
}
.m-ib-img img{
    width: 100%;
    height: 370px;
    float: left;
}
.m-ib-des h3{
    color: #ffffffc7;
    font-size: 50px;
    margin: 0;
    text-shadow: 0 0 8px #ffffff54;
}
.m-ib-des p{
    font-size: 17px;
    margin: 0;
    text-align: justify;
    line-height: 40px;
    margin-top: 1em;
    color: white;
}
.m-ib-des a{
    width: fit-content;
    float: left;
    border: 1px solid #ffffffd4;
    border-radius: 100px;
    background-color: rgb(188 107 225);
    color: white;
    padding: 0.8em 7%;
    transition: 0.4s;
    cursor: pointer;
    box-sizing: border-box;
    font-size: 16px;
    margin-top: 2em;
    box-shadow: 1px 1px 12px rgb(255 255 255);
}
/* .m-ib-des a:hover{
    background-color:rgb(62 61 147) ;
    transition: 0.4s;
} */
.three-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
  }
@media only screen and (max-width:850px){
    .m-ib-container {
        flex-direction: column-reverse;
        align-items: center;
    }
    .m-ib-des, .m-ib-img {
        width: 100%;
    }
    .m-ib-img{
        background: linear-gradient(00deg, rgba(255, 255, 255, 0) 5%, rgba(80, 106, 173, 0.375) 40%);
    }
    .m-ib-img img{
        width: 25em;
    }
}
@media only screen and (max-width:580px){
    .m-ib-img img {
        width: 20em;
    }
    .m-ib-des{
        align-items: center;
        padding: 1em;
    }
    .m-ib-des h3 {
     font-size: 25px;
     text-align: center;
    }
    .m-ib-des p {
        text-align: center;
        font-size: 13px;
        line-height: 26px;
    }
    .m-ib-des a {
        font-size: 14px;
        margin-top: 1em;
    }
    .m-ib-des div{
        width: 100%;
        justify-content: center !important;
    }
}